package online.hxstar.learn.serialization;

import java.io.Serializable;

/**
 * @author huxing
 * @date 2018-12-14 18:21
 */
public class SubscribeReq implements Serializable {

    private int subReqID;
    private String userName;
    private String productName;
    private String phoneNumber;
    private String address;

    public int getSubReqID() {
        return subReqID;
    }

    public SubscribeReq setSubReqID(int subReqID) {
        this.subReqID = subReqID;
        return this;
    }

    public String getUserName() {
        return userName;
    }

    public SubscribeReq setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getProductName() {
        return productName;
    }

    public SubscribeReq setProductName(String productName) {
        this.productName = productName;
        return this;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public SubscribeReq setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
        return this;
    }

    public String getAddress() {
        return address;
    }

    public SubscribeReq setAddress(String address) {
        this.address = address;
        return this;
    }

    @Override
    public String toString() {
        return "{" +
                "\"subReqID\":" + subReqID +
                ",\"userName\":\"" + userName + '\"' +
                ",\"productName\":\"" + productName + '\"' +
                ",\"phoneNumber\":\"" + phoneNumber + '\"' +
                ",\"address\":\"" + address + '\"' +
                '}';
    }
}
